//
//  CommentCell.m
//  LvXingPai
//
//  Created by mafang on 16/8/12.
//  Copyright © 2016年 _Junxee. All rights reserved.
//

#import "CommentCell.h"

@interface CommentCell ()

@property (weak, nonatomic) IBOutlet UILabel *noCommentLabel;

@end

@implementation CommentCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setDetailModel:(DetailModel *)detailModel
{
    _detailModel = detailModel;

    if ([detailModel.comments isEqualToString:@"0"]) {
        self.noCommentLabel.text = @"暂无评论";
    } else {
        self.noCommentLabel.text = [NSString stringWithFormat:@"有%@条评论",detailModel.comments];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
